package com.rayframework.context.utils;


/**
 * 字符串工具类
 *
 * @author LiaoYuXing-Ray
 * @version 1.0
 * @createDate 2023/11/24 11:42
 **/
public class StringUtils {
    private StringUtils() {

    }

    /**
     * set方法拼接
     * 如：userDao   ==>   setUserDao
     *
     * @param fieldName propertyName
     * @return java.lang.String
     * @author LiaoYuXing-Ray 2023/11/24 17:40
     **/
    public static String getSetterMethodByFieldName(String fieldName) {
        return "set" + fieldName.substring(0,1).toUpperCase() + fieldName.substring(1);
    }
}
